//package com.wildlife.springboot.repository;
//
//import com.wildlife.springboot.entity.Animal;
//import com.wildlife.springboot.entity.AnimalResult;
//import org.springframework.data.neo4j.repository.Neo4jRepository;
//import org.springframework.data.neo4j.repository.query.Query;
//import org.springframework.stereotype.Repository;
//
//import java.util.List;
//
//@Repository
//public interface AnimalRepository extends Neo4jRepository<Animal, String> {
//    @Query("MATCH (a:Animal)-[r]->(b:Attribute) RETURN a.name AS animal, collect({type: type(r), target: b.name, label: r.type}) AS relationships")
//    List<AnimalResult> findAllAnimalsWithRelations();
//}
